package com.wwl.cms.utils.designModeTest.facade;

/**
 * @author wwl
 * @version 1.0
 * @date 2021/9/7 19:36
 * @description:
 */
public class DVDPlayer {
    //使用单例模式，使用饿汉式
    private static DVDPlayer instance = new DVDPlayer();

    public static DVDPlayer getInstance() {
        return instance;
    }
    public void on(){
        System.out.println("dvd on");
    }
    public void off(){
        System.out.println("dvd off");
    }
}
